<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="zh">
<head>
<title>站点导航</title>
<style>
.posts-pagination {
	text-align: center;
	margin-top: -30px;
	margin-bottom: -15px;
}

.post {
	border-bottom: 1px dotted #ccc;
	margin-bottom: 20px;
}

.post h1 a,.post h3 a {
	text-decoration: none;
	color: #000000;
}

.post-bottom {
	margin-bottom: 10px;
}

.pagination li a {
	margin-left: 5px;
}
</style>
</head>
<body>
	<div class="container">
		<div class="row">
			<div class="posts col-md-8 col-md-offset-2">
				<table class="table table-hover">
					<thead>
						<tr>
							<th>#</th>
							<th>URL</th>
							<th>说明</th>
							<th>方法</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>1</td>
							<td>/</td>
							<td>首页</td>
							<td>GET</td>
						</tr>
						<tr>
							<td>2</td>
							<td>/sitemap</td>
							<td>站点导航</td>
							<td>GET</td>
						</tr>
						<tr>
							<td>3</td>
							<td>/login</td>
							<td>登录页面</td>
							<td>GET</td>
						</tr>
						<tr>
							<td>4</td>
							<td>/login</td>
							<td>登录</td>
							<td>POST</td>
						</tr>
						<tr>
							<td>5</td>
							<td>/logout</td>
							<td>退出</td>
							<td>GET(待改)</td>
						</tr>
						<tr>
							<td>6</td>
							<td>/posts</td>
							<td>博客列表页面</td>
							<td>GET</td>
						</tr>
						<tr>
							<td>7</td>
							<td>/post/{id}</td>
							<td>博客详细页面</td>
							<td>GET</td>
						</tr>
						<tr>
							<td>8</td>
							<td>/admin/post</td>
							<td>新增博客页面</td>
							<td>GET</td>
						</tr>
						<tr>
							<td>9</td>
							<td>/admin/post</td>
							<td>保存博客(新增或修改)</td>
							<td>POST</td>
						</tr>
						<tr>
							<td>10</td>
							<td>/admin/post/{id}</td>
							<td>博客编辑页面</td>
							<td>GET</td>
						</tr>
						<tr>
							<td>11</td>
							<td>/admin/post/{id}</td>
							<td>删除博客</td>
							<td>DELETE</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</body>
</html>